package org.gd.hellojavacore.patterns.decorator;

class DecoratorHello extends DecoratorImpl {

    public DecoratorHello(InterfaceComponent c){
        super(c);
    }

    @Override
    public void doOperation() {
        System.out.print("Hello");
        super.doOperation();
    }
    @Override
    public void newOperation(){
        System.out.println("New hello operation");
    }
}
